package com.briup.jd2511.jd2511_product_source.service;

import com.briup.jd2511.jd2511_product_source.exception.ServiceException;
import com.briup.jd2511.jd2511_product_source.pojo.DiseaseRecord;
import com.briup.jd2511.jd2511_product_source.pojo.ManagerDisease;
import com.briup.jd2511.jd2511_product_source.result.Result;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DiseaseRecordService {

    /**
     * 查询所有病症
     * @return
     */
    List<ManagerDisease> findAllDisease();

    /**
     * 分页+条件查询病症记录
     * @param pageName
     * @param pageSize
     * @param drStatus
     * @param drDId
     * @return
     */

    PageInfo<ManagerDisease> findByPage(Integer pageName, Integer pageSize, String drStatus, String drDId);

    /**
     * 添加/修改病症记录
     * @param diseaseRecord
     * @return
     */
    void saveOrUpdate(DiseaseRecord diseaseRecord) throws ServiceException;
}
